package com.immortal.core.module.integration.authenticator;


import com.immortal.core.module.integration.IntegrationAuthentication;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class AbstractPreparableIntegrationAuthenticator implements IntegrationAuthenticator {

    @Override
    public abstract Object authenticate(IntegrationAuthentication integrationAuthentication);

    @Override
    public abstract void prepare(IntegrationAuthentication integrationAuthentication);

    @Override
    public abstract boolean support(IntegrationAuthentication integrationAuthentication);

    @Override
    public void complete(IntegrationAuthentication integrationAuthentication) {
    }

    @Override
    public boolean complete(HttpServletRequest request, HttpServletResponse response, Authentication auth, AuthenticationException e) {
        return false;
    }
}
